import {
  Entity,
  Column,
  ManyToMany,
  JoinTable,
  ManyToOne,
  JoinColumn,
} from 'typeorm';
import { Base } from './base.entity';
import { ApiProperty } from '@nestjs/swagger';
import { Template } from './template.entity';
import { Category } from './category.entity';

@Entity()
export class TemplateCategory extends Base {
  @Column({ length: 500 })
  @ApiProperty({ title: '名称' })
  name: string;

  @Column('text')
  @ApiProperty({ title: '描述' })
  description: string;

  @Column({ name: 'parentId' })
  parentId: string;
}
